import request from "../utils/request";

export default{
    search(page,size,searchMap){
        return request({
            url:`/member/findPageAndCountMem/${page}/${size}`,
            method:'post',
            data:searchMap
        })
    },
    add(member){
        return request({
            url:`/member/member`,
            method:'post',
            data:member
        })
    },
    getById(id){
        return request({
            url:`/member/${id}`,
            method:'get'
        })
    },
    update(member){
        return request({
            url:'/member/member',
            method:'post',
            data:member
        })
    },
    deleteById(id){
        return request({
            url:`/member/${id}`,
            method:'delete'
        })
    }
}